class 10 substitution method